package com.yike.product.service;

import com.yike.common.pagination.Paging;
import com.yike.product.param.PlatformGoodsPageParam;
import com.yike.product.param.PlatformGoodsParam;
import com.yike.product.param.PlatformShopGoodsPageParam;
import com.yike.product.vo.PlatformGoodsVo;
import com.yike.product.vo.PlatformShopGoodsVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 商品库管理 服务类
 *
 * @author Sakura
 * @since 2024-10-18
 */
public interface PlatformGoodsService {

    boolean batchSave(List<PlatformGoodsParam> platformGoodsParams) throws Exception;

    boolean batchUpdate(List<PlatformGoodsParam> platformGoodsParams) throws Exception;

    boolean batchDel(List<Long> ids) throws Exception;

    PlatformGoodsVo getGoods(Long id) throws Exception;

    Paging<PlatformGoodsVo> getGoodsList(PlatformGoodsPageParam platformGoodsPageParam) throws Exception;

    boolean importGoods(MultipartFile file) throws Exception;

    void exportTemplate(HttpServletRequest request, HttpServletResponse response) throws Exception;

    Paging<PlatformShopGoodsVo> getShopGoodsList(PlatformShopGoodsPageParam platformGoodsPageParam) throws Exception;

}
